package info.openlvb.openface.client.handler;

import info.openlvb.openface.client.base.person.AddPersonPanel;

import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.Button;
import com.gwtext.client.widgets.event.ButtonListenerAdapter;

public class ClearPersonListener extends ButtonListenerAdapter{

	private AddPersonPanel app;
	
	public ClearPersonListener(AddPersonPanel app){
		this.app = app;
	}
	
	public void onClick(Button button, EventObject e) {
		app.getConfirmpassword().setValue("");
		app.getLogin().setValue("");
		//app.getDescription().setValue("");
		app.getMail().setValue("");
		app.getNom().setValue("");
		app.getPassword().setValue("");
		app.getPrenom().setValue("");
		app.getRepPerso().setValue("");
		app.getChkmail().setValue(false);
		app.getChkrepperso().setValue(false);
	}

}
